Skip to main content

DefaultApi

All URIs are relative to //api.estuary.tech/

MethodHTTP requestDescription
viewerGetGET /viewerFetch viewer details

viewerGet

UtilViewerResponse viewerGet()

Fetch viewer details

This endpoint fetches viewer details such as username, permissions, address, owned miners, user settings etc.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");

DefaultApi apiInstance = new DefaultApi();
try {
UtilViewerResponse result = apiInstance.viewerGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#viewerGet");
e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

UtilViewerResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json